home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / libtiff / contrib / dosdjgpp / Makefile.lib < prev    next >
Encoding:
Makefile  |  1999-09-11  |  7.4 KB  |  248 lines

  1. #       $Header: /usr/people/sam/tiff/libtiff/RCS/Makefile.in,v 1.28 1996/02/09 05:55:00 sam Exp $
  2. #
  3. # manually derived from Makefile.in for DJGPP v2.x (GNU C for DOS/386).
  4. #
  5. # Tag Image File Format Library
  6. #
  7. # Copyright (c) 1988-1996 Sam Leffler
  8. # Copyright (c) 1991-1996 Silicon Graphics, Inc.
  9. # Permission to use, copy, modify, distribute, and sell this software and 
  10. # its documentation for any purpose is hereby granted without fee, provided
  11. # that (i) the above copyright notices and this permission notice appear in
  12. # all copies of the software and related documentation, and (ii) the names of
  13. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. # publicity relating to the software without the specific, prior written
  15. # permission of Sam Leffler and Silicon Graphics.
  16. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  17. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  18. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  19. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  20. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  21. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  23. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  24. # OF THIS SOFTWARE.
  25. #
  26.  
  27. SRCDIR    = .
  28.  
  29. NULL    =
  30. CC    = gcc
  31. AR    = ar
  32. AROPTS    = rc
  33. RANLIB    = ranlib
  34.  
  35. #
  36. # If JPEG support is to be included and the Independent JPEG
  37. # Software distribution is not installed then DIR_JPEG must
  38. # refer to the directory where the include files reside.
  39. #
  40. # Similarly, if the libgz distribution is not installed, then
  41. # DIR_LIBGZ must refer to the directory where the include files
  42. # are located.  Note that recent versions 
  43. #
  44. IPATH    = -I. -I${SRCDIR}
  45. # @COPT_LIBINC@
  46. #
  47. # To enable JPEG support include -DJPEG_SUPPORT here.
  48. # To enable Deflate support add a -DZIP_SUPPORT here.
  49. # Note that where the configure script is used these defines
  50. # are automatically setup when JPEG/ZIP is set to "yes".
  51. #
  52. # Otherwise, consult tiffconf.h for information on controlling
  53. # the configuration of optional library support.
  54. #
  55. CONF_LIBRARY=#@CONF_JPEG@ @CONF_ZIP@
  56. COPTS    = 
  57. OPTIMIZER=-O
  58. CFLAGS    = ${COPTS} ${OPTIMIZER} ${IPATH} ${CONF_LIBRARY}
  59. #
  60. SRCS    = \
  61.     tif_aux.c \
  62.     tif_close.c \
  63.     tif_codec.c \
  64.     tif_compress.c \
  65.     tif_dir.c \
  66.     tif_dirinfo.c \
  67.     tif_dirread.c \
  68.     tif_dirwrite.c \
  69.     tif_dumpmode.c \
  70.     tif_error.c \
  71.     tif_fax3.c \
  72.     tif_fx3s.c \
  73.     tif_getimage.c \
  74.     tif_jpeg.c \
  75.     tif_flush.c \
  76.     tif_lzw.c \
  77.     tif_next.c \
  78.     tif_open.c \
  79.     tif_packbits.c \
  80.     tif_predict.c \
  81.     tif_print.c \
  82.     tif_read.c \
  83.     tif_swab.c \
  84.     tif_strip.c \
  85.     tif_thunder.c \
  86.     tif_tile.c \
  87.     tif_msdos.c \
  88.     tif_version.c \
  89.     tif_warning.c \
  90.     tif_write.c \
  91.     tif_zip.c \
  92.     ${NULL}
  93. OBJS    = \
  94.     tif_aux.o \
  95.     tif_close.o \
  96.     tif_codec.o \
  97.     tif_compress.o \
  98.     tif_dir.o \
  99.     tif_dirinfo.o \
  100.     tif_dirread.o \
  101.     tif_dirwrite.o \
  102.     tif_dumpmode.o \
  103.     tif_error.o \
  104.     tif_fax3.o \
  105.     tif_fx3s.o \
  106.     tif_getimage.o \
  107.     tif_jpeg.o \
  108.     tif_flush.o \
  109.     tif_lzw.o \
  110.     tif_next.o \
  111.     tif_open.o \
  112.     tif_packbits.o \
  113.     tif_predict.o \
  114.     tif_print.o \
  115.     tif_read.o \
  116.     tif_swab.o \
  117.     tif_strip.o \
  118.     tif_thunder.o \
  119.     tif_tile.o \
  120.     tif_msdos.o \
  121.     tif_version.o \
  122.     tif_warning.o \
  123.     tif_write.o \
  124.     tif_zip.o \
  125.     ${NULL}
  126. TARGETS    = libtiff.a
  127.  
  128. all:    ${TARGETS}
  129.  
  130. libtiff.a: ${OBJS}
  131.     ${AR} ${AROPTS} libtiff.a $?
  132.     ${RANLIB} libtiff.a
  133.  
  134. ${OBJS}: ${SRCDIR}/tiffio.h ${SRCDIR}/tiff.h ${SRCDIR}/tif_dir.h
  135. ${OBJS}: ${SRCDIR}/tiffcomp.h ${SRCDIR}/tiffiop.h ${SRCDIR}/tiffconf.h
  136.  
  137. ALPHA   = ../dist/tiff.alpha
  138. VERSION = ../VERSION
  139.  
  140. version.h: ${VERSION} ${ALPHA} ${SRCDIR}/mkversion.c
  141.     ${CC} -o mkversion ${CFLAGS} ${SRCDIR}/mkversion.c
  142.     del version.h
  143.     mkversion -v ${VERSION} -a ${ALPHA} version.h
  144.  
  145. tif_version.o: version.h
  146.  
  147. #
  148. # The finite state machine tables used by the G3/G4 decoders
  149. # are generated by the mkg3states program.  On systems without
  150. # make these rules have to be manually carried out.
  151. #
  152. # The file is called tif_fax3sm.c is the normal (unix) Makefile, but this
  153. # may cause problems when compiling without support for LFN, then the file
  154. # tif_fax3.o is considered the same name as tif_fax3sm.o, since only 8 chars
  155. # are significant.
  156. #
  157. tif_fx3s.c: ${SRCDIR}/mkg3states.c ${SRCDIR}/tif_fax3.h
  158.     ${CC} -o mkg3states ${CFLAGS} ${SRCDIR}/mkg3states.c
  159.     del tif_fx3s.c
  160.     mkg3states -c const tif_fx3s.c
  161.  
  162. tif_fx3s.o: tif_fx3s.c
  163.     @echo If the following gcc command fails due to lack of virtual memory, try
  164.     @echo compiling it in a non-DPMI environment with the cwsdpmi swapfile on a
  165.     @echo drive that has plenty of space.
  166.     ${CC} -c ${CFLAGS} tif_fx3s.c
  167.  
  168. tif_aux.o: ${SRCDIR}/tif_aux.c
  169.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_aux.c
  170. tif_close.o: ${SRCDIR}/tif_close.c
  171.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_close.c
  172. tif_codec.o: ${SRCDIR}/tif_codec.c
  173.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_codec.c
  174. tif_compress.o: ${SRCDIR}/tif_compress.c
  175.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_compress.c
  176. tif_dir.o: ${SRCDIR}/tif_dir.c
  177.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dir.c
  178. tif_dirinfo.o: ${SRCDIR}/tif_dirinfo.c
  179.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirinfo.c
  180. tif_dirread.o: ${SRCDIR}/tif_dirread.c
  181.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirread.c
  182. tif_dirwrite.o: ${SRCDIR}/tif_dirwrite.c
  183.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirwrite.c
  184. tif_dumpmode.o: ${SRCDIR}/tif_dumpmode.c
  185.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dumpmode.c
  186. tif_error.o: ${SRCDIR}/tif_error.c
  187.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_error.c
  188. tif_fax3.o: ${SRCDIR}/tif_fax3.c ${SRCDIR}/t4.h ${SRCDIR}/tif_fax3.h
  189.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_fax3.c
  190. tif_getimage.o: ${SRCDIR}/tif_getimage.c
  191.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_getimage.c
  192. tif_jpeg.o: ${SRCDIR}/tif_jpeg.c
  193.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_jpeg.c
  194. tif_flush.o: ${SRCDIR}/tif_flush.c
  195.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_flush.c
  196. tif_lzw.o: ${SRCDIR}/tif_lzw.c ${SRCDIR}/tif_predict.h
  197.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_lzw.c
  198. tif_next.o: ${SRCDIR}/tif_next.c
  199.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_next.c
  200. tif_open.o: ${SRCDIR}/tif_open.c
  201.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_open.c
  202. tif_packbits.o: ${SRCDIR}/tif_packbits.c
  203.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_packbits.c
  204. tif_predict.o: ${SRCDIR}/tif_predict.c ${SRCDIR}/tif_predict.h
  205.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_predict.c
  206. tif_print.o: ${SRCDIR}/tif_print.c
  207.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_print.c
  208. tif_read.o: ${SRCDIR}/tif_read.c
  209.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_read.c
  210. tif_swab.o: ${SRCDIR}/tif_swab.c
  211.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_swab.c
  212. tif_strip.o: ${SRCDIR}/tif_strip.c
  213.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_strip.c
  214. tif_thunder.o: ${SRCDIR}/tif_thunder.c
  215.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_thunder.c
  216. tif_tile.o: ${SRCDIR}/tif_tile.c
  217.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_tile.c
  218. tif_unix.o: ${SRCDIR}/tif_unix.c
  219.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_unix.c
  220. tif_version.o: ${SRCDIR}/tif_version.c
  221.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_version.c
  222. tif_warning.o: ${SRCDIR}/tif_warning.c
  223.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_warning.c
  224. tif_write.o: ${SRCDIR}/tif_write.c
  225.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_write.c
  226. tif_zip.o: ${SRCDIR}/tif_zip.c ${SRCDIR}/tif_predict.h
  227.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_zip.c
  228.  
  229. tif_apple.o: ${SRCDIR}/tif_apple.c
  230.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_apple.c
  231. tif_atari.o: ${SRCDIR}/tif_atari.c
  232.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_atari.c
  233. tif_msdos.o: ${SRCDIR}/tif_msdos.c
  234.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_msdos.c
  235. tif_vms.o: ${SRCDIR}/tif_vms.c
  236.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_vms.c
  237. tif_win3.o: ${SRCDIR}/tif_win3.c
  238.     ${CC} -c ${CFLAGS} ${SRCDIR}/tif_win3.c
  239.  
  240. INCS    = ${SRCDIR}/tiff.h ${SRCDIR}/tiffio.h
  241.  
  242. clean:
  243.     rm -f ${TARGETS} ${OBJS} mkg3states mkg3states.exe tif_fx3s.c
  244.     rm -f version.h libtiff.a mkversion mkversion.exe
  245.